package com.demo.sender.email;

import com.demo.common.ResultData;
import com.demo.request.EmailSenderReq;

/**
 * @author wangfengchen
 */
public interface EmailSenderService {


  /**
   * 发送邮件
   *
   * @param request
   * @return
   */
  ResultData<Object> send(EmailSenderReq request);

  /**
   * 异步发送邮件
   *
   * @param request
   * @return
   */
  ResultData<Object> sendAsync(EmailSenderReq request);

  /**
   * 异步发送邮件附件
   *
   * @param request
   */
  void sendWithAttachmentAsync(EmailSenderReq request);

}
